package longcaisuyun.longcai.com.yiliubabalongcaisuyun;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.TextView;

import longcaisuyun.longcai.com.mystatic.publicUrl;



/**
 * Created by Administrator on 2016/5/16.
 */
public class GongGaoXiangQingActivity extends Activity {
    WebView wv_gonggao;
    String id;
    TextView imageView5;
    LinearLayout ll_fanhui;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gonggao_gonggaoxiangqing);
        View view = getWindow().getDecorView();
        // 适配工具将视图重新排布
        MyApplication.ScaleScreenHelper.loadView((ViewGroup) view);
        imageView5 = (TextView) findViewById(R.id.image_icon);

        Intent intent = getIntent();
        String id = intent.getStringExtra("gonggaoxiangqingid");
        ll_fanhui = (LinearLayout) findViewById(R.id.fanhui_lin);
        wv_gonggao = (WebView) findViewById(R.id.wv_gonggao_gonggaoxiangqing);
        String gonggaodizhi = publicUrl.gonggao + "?newid=" + id;
        wv_gonggao.loadUrl(gonggaodizhi);

        ll_fanhui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GongGaoXiangQingActivity.this.finish();
            }
        });
    }
}
